<?php

require_once 'conn.php';
header("content-type:text/html;charset=utf-8");


$username = $_POST['username'];
$password = md5($_POST['password']);

$sql = "
SELECT * 
FROM  `zc` 
where username='$username'
    and password='$password'
LIMIT 1;   
";

$result = $conn->query($sql);
//header("location:index.php");
if($result ->num_rows>0 ){
    echo"正确";
}else{
    echo '用户名或密码错误';
 // header("location:register.html");  
}